//
//  UIColorExt.m
//  BeautyBaoUnion
//
//  Created by 肖智 on 2016/10/24.
//  Copyright © 2016年 肖智. All rights reserved.
//

#import "UIColorExt.h"

@implementation UIColor(commonExt)
+ (UIColor *)colorWithHex:(int)hex alpha:(CGFloat)alpha{
    CGFloat red = ((hex&0xff0000)>>16)/255.0;
    CGFloat green = ((hex&0xff00)>>8)/255.0;
    CGFloat blue = (hex&0xff)/255.0;
    return [self colorWithRed:red green:green blue:blue alpha:alpha];
}
@end
